package cn.wolfcode.edu.web.controller;

import cn.wolfcode.edu.query.ClientQueryObject;
import cn.wolfcode.edu.query.QueryObject;
import cn.wolfcode.edu.query.TransferHistoryQueryObject;
import cn.wolfcode.edu.service.ITransferHistoryService;
import cn.wolfcode.edu.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("transferHistory")
public class TransferHistoryController {

    @Autowired
    private ITransferHistoryService transferHistoryService;

    //定位移交历史界面
    @RequestMapping("")
    public String gotoTransferHistoryPage(){
        return "client/transferHistory";
    }

    @RequestMapping("list")
    @ResponseBody
    public PageResult list(TransferHistoryQueryObject qo){
        PageResult pageResult = transferHistoryService.query(qo);
        return pageResult;
    }

}
